package com.example.service.impl;

import com.example.dao.OrdersDao;
import com.example.entity.Orders;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : chenjianhua
 * @date : 17:04 2021/2/23
 */

@Service
public class OrderServiceImpl implements OrderService {


    @Autowired
    private OrdersDao ordersDao;

    @Override
    public List<Orders> qryOrdersInfo() throws Exception {
        return ordersDao.qryOrders();
    }

    @Override
    public List<Orders> qryOrdersInfoByDay() throws Exception {
        return ordersDao.qryOrdersByDay();
    }
}
